﻿using System;
using System.Runtime.Serialization;
using LiSA_Service.Users.Models;

namespace LiSA_Service.Users.Dto
{
    [DataContract]
    public class User
    {
        [DataMember]
        public Guid ID { get; set; }

        [DataMember]
        public string UserName { get; set; }

        [DataMember]
        public string FullName { get; set; }

        [DataMember]
        public bool IsActive { get; set; }

        [DataMember]
        public Person Person { get; set; }

        [DataMember]
        public Organization Organization { get; set; }

        [DataMember]
        public string Email { get; set; }

        [DataMember]
        public string NewEncryptedPassword { get; set; }

        [DataMember]
        public Permission[] Permissions { get; set; }
    }
}